import { requestClient } from '#/api/request';

/**
 * 获取url的html
 */
export async function getUrlHtml(data: string) {
  const res = requestClient.get<{ html: string; title: string }>('/html2md', {
    params: { url: data },
  });

  return res;
}
